<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml" >
<HEAD>
    <TITLE>云和租房 - 用户管理</TITLE>
    <META content="text/html; charset=utf-8" http-equiv=Content-Type><LINK
        rel=stylesheet type=text/css href="css/css/style.css">
    <script type="text/javascript" src="css/js/jquery-1.8.3.js"></script>
    <META name=GENERATOR >
</HEAD>
<script type="text/javascript">
    $(function () {

        $(".sc").click(function () {
            if(confirm("确认删除?")){
                return true;
            }else{
                return false;
            }
        })
        /*$("#asd").click(function () {
            if($("#asd").attr("checked")){
                $(".shan").attr("checked","true")
            }else{
                $(".shan").attr("checked",null)
            }
        })*/

        $(".qsc").click(function () {
            if(confirm("确认删除?")){
                return true;
            }else{
                return false;
            }
        })

        $("#qsc").click(function () {
            var p=$("#pid").val();

            $.ajax({
                url:"deleteHouse",
                type:"post",
                data:{"pid":p},
                success:function (data) {
                    if(data!=null){
                        location.href = '../qbsc?pid=' + data.pid;
                    }
                }
            })
        })

    })
</script>
<BODY>
<DIV id=header class=wrap>
    <DIV id=logo><IMG src="css/images/logo.gif"></DIV>
    <DIV class=search><LABEL class="ui-green searchs"><a href="addHouse" title="">发布房屋信息</a></LABEL>
        <a href="queHouse" >首页</a>
    </DIV></DIV>
<DIV class="main wrap">
    <DIV id=houseArea>
        <TABLE class=house-list>
            <TBODY>
            <TR th:each="house:${list}">
                <input th:value="${house.pid}" style="display: none" type="text"  id="pid" name="pid" />
                <TD class="house-thumb"><img th:src="${house.picture}" style="height:80px;width: 80px "></TD>
                <TD>
                    <DL>
                        <DT><A th:href="@{../seHouse(hid=${house.hid})}" target="_blank"><DD th:text="${house.hname}"></DD></A></DT>
                        <DT th:text="${house.location}"><DT ><SPAN th:text="${house.area}"></SPAN>平米</DT>联系方式：<DD th:text="${house.tel}"> </DD></DT></DL></TD>
                <TD class=house-type><a th:href="@{../selHouse(hid=${house.hid})}" title="修改" id="xg" >修改</a></TD>
                <TD class=house-price><a th:href="@{../delHouse(hid=${house.hid})}" title="删除"  class="sc">删除</a></TD>
                <!--<td><input type="checkbox" name="asd" class="shan"/></td>-->

            </TR>


            </TBODY>

        </TABLE>
        <div id="qb"><!--<input type="checkbox" id="asd">--><a href="#" title="全部删除"  id="qsc" class="qsc" >全部删除</a></div>
    </DIV>
   </DIV>


<DIV id=footer class=wrap>
    <DL>
        <DT>云和租房 © 2010 云和 京ICP证1000001号</DT>
        <DD>关于我们 · 联系方式 · 意见反馈 · 帮助中心</DD></DL></DIV></BODY></HTML>